package com.service;

import com.dto.RoleApplicationDTO;
import com.entity.RoleApplication;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: RoleApplicationService
 * Description:
 *
 * @author L_Z_R
 * @version 1.0
 * @create 2025/06/18 15:47
 */
public interface RoleApplicationService {
    /**
     * 插入角色申请信息
     *
     * @param roleApplication 角色申请信息
     */
    void insertRoleApplication(RoleApplication roleApplication);

    /**
     * 查询所有角色申请信息
     *
     * @return 所有角色申请信息
     */
    List<RoleApplicationDTO> getAllRoleApplications();

    /**
     * 根据Id审核角色申请信息
     *
     * @param roleApplicationId 角色申请id
     * @param status             审核状态
     * @param rejectReason       拒绝理由
     */
    void auditRoleApplication(Integer roleApplicationId,Byte status, String rejectReason);
}
